{extend name='base'}
{block name='content'}
    <!--页面主要内容-->
<main class="lyear-layout-content">

    <div class="container-fluid">

        <div class="row">
            <div class="col-lg-12">
                <div class="card">
                    <div class="card-header">
                        <h4>视频列表</h4>
                    </div>
                    <div class="card-toolbar clearfix">
                        <form class="search-bar" method="post" action="{:url('admin/video/search')}" role="form">
                            <div class="input-group">
                                <input type="text" class="form-control" value="" name="video_name" placeholder="请输入视频名称关键字">
                                <div class="input-group-btn">
                                    <button class="btn btn-default"  type="submit" >
                                        搜索
                                    </button>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="card-body">
                        <div class="table-responsive">
                            <table class="table table-bordered">
                                <thead>
                                <tr>
                                    <th>编号</th>
                                    <th>名称</th>
                                    <th>子视频</th>
                                    <th width="200">操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                {foreach $proList as $v}
                                <tr>
                                    <td>{$v.pro_id}</td>
                                    <td>{$v.pro_name}</td>
                                    <td>{$v.sonvideo}</td>
                                    <td>
                                        <div class="btn-group">
                                            <a class="btn btn-xs btn-default" href="{:url('admin/video/videoList',['id'=>$v.pro_id])}" title="编辑" data-toggle="tooltip"><i class="mdi mdi-format-align-center"></i>查看视频</a>
                                            <a class="btn btn-xs btn-default" href="{:url('admin/video/add',['id'=>$v.pro_id])}" title="编辑" data-toggle="tooltip"><i class="mdi mdi-folder-plus"></i>添加视频</a>
                                        </div>
                                    </td>
                                </tr>
                                {/foreach}

                                </tbody>
                            </table>
                        </div>


                    </div>
                </div>
            </div>

        </div>

    </div>

</main>
    <!--End 页面主要内容-->
<script>
    layui.use('layer', function(){
        var layer = layui.layer;

    };
</script>
{/block}